package com.qfedu.fmmall.sign.controller;

import com.qfedu.fmmall.common.vo.ResultVO;
import com.qfedu.fmmall.entity.Users;
import com.qfedu.fmmall.sign.service.UserSignUpService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author : yanBin
 * @date :2022/1/22 14:21
 */
@RestController
@RequestMapping("/user")
@CrossOrigin
@Api(value = "注册接口",tags = "注册接口")
public class UserSignUpController {
    @Autowired
    private UserSignUpService userSignUpService;

    @ApiOperation("用户注册接口")
    @PostMapping("/register")
    public ResultVO register(@RequestBody Users users){
        return userSignUpService.userRegistration(users);
    }

}
